template {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.all {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    background: #23242a;
}

.box {
    position: relative;
    margin-top: 80px;
    width: 800px;
    height: 460px;
    background: #1c1c1c;
    border-radius: 8px;
    overflow: hidden;
}

.box::before {
    content: '';
    z-index: 1;
    position: absolute;
    top: -50%;
    left: -50%;
    width: 800px;
    height: 460px;
    transform-origin: bottom right;
    background: linear-gradient(0deg, transparent, #45f3ff, #45f3ff);
    animation: animate 6s linear infinite;
}

.box::after {
    content: '';
    z-index: 1;
    position: absolute;
    top: -50%;
    left: -50%;
    width: 800px;
    height: 460px;
    transform-origin: bottom right;
    background: linear-gradient(0deg, transparent, #46ffbf, #46ffbf);
    animation: animate 6s linear infinite;
    animation-delay: -3s;
}

.register-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    z-index: 30;
}

.login-box {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 30;
}

.pre-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    z-index: 31;
    transition: 0.8s ease-in-out;
}

.pre-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, .3);
    z-index: 29; /* 置于底层 */
    backdrop-filter: blur(3px); /* 模糊处理 */
    opacity: 0.1; /* 降低不透明度 */
}

.border-center {
    position: absolute;
    top: 60px;
    left: 399px;
    width: 2px;
    height: 340px;
    z-index: 30;
    background: linear-gradient(-90deg, #0efaa7, #00effb);
    opacity: 0.6;
}

@keyframes animate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.pre-box form,
.login-box form,
.register-box form {
    position: absolute;
    inset: 2px;
    background: #28292d;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
}

h1 {
    text-align: center;
    font-weight: 1000;
    color: #45f3ff;
    letter-spacing: 0.05em;
    user-select: none;
}

h2 {
    color: #0efaa7;
    font-size: 26px;
    font-weight: 1000;
    margin: 10px 0 -18px;
    text-align: center;
    letter-spacing: 0.3em;
    user-select: none;
}

.inputBox {
    position: relative;
    width: 200px;
    margin-top: 35px;
    margin-bottom: -7px;
}

.inputBox input {
    position: relative;
    width: 100%;
    padding: 17px 10px 8px;
    background: transparent;
    outline: none;
    box-shadow: none;
    border: none;
    color: #23242a;
    font-size: 1em;
    letter-spacing: 0.05em;
    transition: 0.5s;
    z-index: 10;
}

.check {
    position: absolute;
    left: 210px;
    top: 18px;
    z-index: 10;
    transition: 0.5s;
}

.pwdView {
    position: absolute;
    left: 170px;
    top: 18px;
    z-index: 10
}


.inputBox span {
    position: absolute;
    left: 0;
    padding: 20px 0 10px;
    pointer-events: none;
    font-size: 0.9em;
    color: #8f8f8f;
    letter-spacing: 0.05em;
    transition: 0.5s;
}

.inputBox input:valid~span,
.inputBox input:focus~span {
    color: #45f3ff;
    transform: translateX(0px) translateY(-34px);
    font-size: 0.75em;
}

.inputBox p {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 150px;
    height: 2px;
    background: #45f3ff;
    border-radius: 4px;
    overflow: hidden;
    transition: 0.5s;
    pointer-events: none;
    /*z-index: 9;*/
}

.inputBox input:valid~p,
.inputBox input:focus~p {
    height: 35px;
    width: 200px;
    font-family: Arial, serif;
    letter-spacing: 1px;
    background: rgba(69, 243, 255, 0.8);
}

.links {
    display: flex;
    justify-content: space-between;
}

.links a {
    margin: 15px 0;
    font-size: 0.75em;
    color: #8f8f8f;
    text-decoration: beige;
    cursor: pointer;
}

.btm-box {
    position: relative;
    margin-top: 30px;
    width: 100%;
    height: 72px;
}

.btm-box-button {
    position: absolute;
    font-size: 0.75em;
    color: #8f8f8f;
    text-decoration: beige;
    right: -10px;
    bottom: 24px;
}

.btm-box-button:hover {
    color: rgba(69, 243, 255, 0.8);
}

.links a:hover  {
    color: #45f3ff;
}

input[type="submit"] {
    position: relative;
    border: none;
    outline: none;
    padding: 11px 25px;
    background: #45f3ff;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    width: 100px;
    margin: 10px 109px;
}

input[type="submit"]:active {
    opacity: 0.8;
}

#sendCode {
    position: absolute;
    left: 210px;
    top: 13px;
    width: 80px;
    height: 30px;
    border-radius: 5px;
}


#sendCode span {
    position: relative;
    padding: 0;
    text-align: center;
    font-size: 0.95em;
    font-weight: 500;
    color: #1c1c1c;
}

/*@keyframes sun {*/
/*    100% {*/
/*        background-position: 400% 0;*/
/*    }*/
/*}*/